﻿using System;
using Me.Amon.M;

namespace Me.Amon.CRM
{
    public class MCrm : MObj
    {
        /// <summary>
        /// 对象索引
        /// </summary>
        public string id;
        /// <summary>
        /// 对象编码
        /// </summary>
        public string code;

        public int status;

        public DateTime update_time;
        public DateTime create_time;

        public static string GetStatusName(object status)
        {
            if (status is int)
            {
                switch ((int)status)
                {
                    case CCrm.STATUE_DEFAULT:
                        return "默认";
                    case CCrm.STATUE_ENABLED:
                        return "启用";
                    case CCrm.STATUS_DISABLED:
                        return "禁用";
                }
            }
            return "未知";
        }
    }
}
